package com.example.tsbs.test;

import com.sun.jna.ptr.ByReference;

public class FloatByReference extends ByReference {
    public FloatByReference() {
        this(4);
    }

    public FloatByReference(int size) {
        super( size * 10);
//        this.setValue(0.0F);
    }

    public void setValue(float value) {
        this.getPointer().setFloat(0L, value);
    }

    public float getValue() {
        return this.getPointer().getFloat(0L);
    }
}
